<?php 
/* ПРОБЛЕМА С ПОЛУЧЕНИЕМ КОЛИЧЕСТВА КОММЕНТАРИЕВ, НЕТ НАЗВАНИЯ Сообществ И НУЖНО ПИСАТЬ ИМЯ И ФАМИЛИЮ, A МЕСТА НА ЭТО НЕТ, ПРОБЛЕМА СО ВРЕМЕНЕМ*/
$arrLastArticle = Article::getLastArticlesSimple(5);
?>
<div class="columnStandartMarginLeft">
	<div class="columnTwoRoundCornerLightblue"><div class="one"><div class="two"><div class="three"><div class="four"><div class="five"><div class="six"><div class="columnStandartPadding">
			<div class="blueTitle"><div><div><div><div>
			<h1 class="blockName">Статьи</h1>
		</div></div></div></div></div>
		
		<?php
			for ($num = 0; $num < sizeof($arrLastArticle); $num++){
			echo '
			<table class="columnAticleTable" width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td  rowspan="2" class="image">
					<a href="' . W_ABSPATH . 'article/' . $arrLastArticle[$num]['ID_article'] . '" class="none"><img src="' . W_IMAGES . 'icons/article/article.gif' . '"/></a>
				</td>
				<td class="title">
					<span><b>';
						if ($arrLastArticle[$num]['essence_type'] == 11)
							echo '							
							<a href="' . W_ABSPATH . 'community/' . $arrLastArticle[$num]['ID_community'] . '/" class="none">
								'. $arrLastArticle[$num]['community_name'] . '
							</a>';
						else echo '							
							<a href="' . W_ABSPATH . 'user/' . $arrLastArticle[$num]['login'] . '/" class="none">
								Блог ' . $arrLastArticle[$num]['login'] . '
							</a>';
						echo '
						&#8594;
						<a href="' . W_ABSPATH . 'article/' . $arrLastArticle[$num]['ID_article'] . '" class="none">'; 
								$size = 24-strlen($arrLastArticle[$num]['community_name']);
								echo Service_String::cutString($arrLastArticle[$num]['name'], $size); echo '
						</a></b>
					</span>
				</td>
			</tr>
			<tr>
				<td class="annotation">
					<span>' . Service_String::cutString($arrLastArticle[$num]['annotation'], 80) . '</span>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<table width="100%" class="additionalInformation" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td class="comment">
								<a href="' . W_ABSPATH . 'article/' . $arrLastArticle[$num]['ID_article'] . '#comment" class="none"><img  src="' . W_IMAGES . 'icons/comment.png' . '" /></a>
							</td>
							<td class="commentAmount">
								<a href="' . W_ABSPATH . 'article/' . $arrLastArticle[$num]['ID_article'] . '#comment" class="none"><span><b>' . $arrLastArticle[$num]['comment_amount'] . '</b></span></a>
							</td>
							<td class="rating">'; 
								View_Mark::showStaticMark($arrLastArticle[$num]['average_mark']);
							echo '</td>
							<td class="user">
								<a href="' . W_ABSPATH . 'user/' . $arrLastArticle[$num]['login'] . '/" class="red">' . $arrLastArticle[$num]['last_name'] /*. ' ' . $arrLastArticle[$num]['first_name'] . */ . '</a>
							</td>
							<td class="delimiter">
								<span>|</span>
							</td>
							<td class="time">
								<span>18:23</span>
							</td>
						</tr>
					</table>
				</td>
			</tr>		
		</table>';
		}?>
	</div></div></div></div></div></div></div></div>
</div>
		